package cn.com.recode.重构方法.内联函数.前;

public class A {

    private int _numberOfLateDeliverise;

    int getRating() {
        return (moreThanFiveLateDeliveries()) ? 2:1;
    }

    private boolean moreThanFiveLateDeliveries() {
        return _numberOfLateDeliverise > 5;
    }
}
